# -*- coding: utf-8 -*-
from distutils.core import setup
import py2exe

manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
    version="0.64.1.0"
    processorArchitecture="x86"
    name="Controls"
    type="win32"
/>
<description>BBS Watcher</description>
<dependency>
    <dependentAssembly>
        <assemblyIdentity
            type="win32"
            name="Microsoft.Windows.Common-Controls"
            version="6.0.0.0"
            processorArchitecture="X86"
            publicKeyToken="6595b64144ccf1df"
            language="*"
        />
    </dependentAssembly>
</dependency>
</assembly>
"""


RT_MANIFEST = 24

includes = ["adapter", "adapter.*"]   
options = {"py2exe":   
            {   "compressed": 1,   
                "optimize": 2,   
                "includes": includes,   
                "bundle_files": 1  
            }   
          }

bbswatcher = {
              "description" : "BBS Watcher",
              "script" : "bbswatcher.py",
              "other_resources" : [(RT_MANIFEST, 1, manifest)],
              "icon_resources" : [(1, "resources/tray.ico")]
              }

setup(
    version = "0.8.0",   
    description = "BBS Watcher",   
    name = "bbswatcher",   
    options = options,   
    zipfile=None,
    data_files=[("resources",["resources/tray.ico","resources/cfg.dat"])],
    windows=[bbswatcher],     
    )
